package com.iptv.grape.bu.imp;


import android.view.KeyEvent;

import com.iptv.grape.BaseActivity;
import com.iptv.grape.bu.AppConfig;
import com.iptv.grape.bu.AppState;
import com.iptv.grape.bu.GrapeContext;
import com.iptv.grape.bu.IKeyEventPorc;
import com.iptv.grape.video.XMediaPlayer;
// 显示时移进度条
@AppState(isShowLiveMenu = false,curPlayType = "Live",curLiveType = "Live", keyVals = {21})
public class ShowTimeLiveUI implements IKeyEventPorc {
    @Override
    public void onKeyDownEvent(BaseActivity context, XMediaPlayer mediaPlayer, GrapeContext grapeContext, KeyEvent event) {
        if (AppConfig.getAppConfig().isCanTimeLive()) {
            grapeContext.setCurLiveType("Time");
            context.cancelHideTopTitleHandler();
            context.statuVisible(grapeContext.getChannelDLinkList().getCurChannel().getName(), "时移");
            grapeContext.loadTimeLiveFragment(context);
        }
    }
}
